﻿--[[
   @brief    tray_manager_desc desc
   @author   rickonzhang
   @version  1.0
   @date     2015/11/12
--]]

tray_manager_desc = 
{
    module_name = 'tray_manager',
    events = 
    { 
        {
            lua_event = 
            {
                {
                    -- wegame 三期暂时屏蔽托盘闪烁消息
--                     id = "group_event.SHOW_MSG_BOX_NOTIFY_REDDOT",
--                     callback = "tray_manager_control.show_msg_box_notify_reddot"
                },
                {
                    id = "group_event.CLEAR_MSG_BOX_NOTIFY_REDDOT",
                    callback = "tray_manager_control.clear_msg_box_notify_reddot"
                },
                {
                    id = "group_event.FRIEND_HAVE_UNREAD_MESSAGE",
                    callback = "tray_manager_control.friend_have_unread_msg"
                },
                {
                    id = "group_event.GROUP_HAVE_UNREAD_MESSAGE",
                    callback = "tray_manager_control.group_have_unread_msg"
                },
                {
                    id = "group_event.FRIEND_CLEAR_MESSAGE",
                    callback = "tray_manager_control.clear_friend_msg"
                },
                {
                    id = "group_event.GROUP_CLEAR_MESSAGE",
                    callback = "tray_manager_control.clear_group_msg"
                },
                {
                    id = "group_event.PWG_FRIEND_HAVE_UNREAD_MESSAGE",
                    callback = "tray_manager_control.pwg_friend_have_unread_msg"
                },
            },
            c_event = 
            {
                {
                    id = ierd_tgp.tray_ui.ON_LBUTTON_UP,
                    callback = "tray_manager_control.on_lbuttonup_on_tray_icon"
                },
                {
                    id = ierd_tgp.tray_ui.ON_LBUTTON_DBCLICK,
                    callback = "tray_manager_control.on_lbuttonup_on_tray_icon"
                },
                {
                    id = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_MASK_GROUP_MESSAGE,
                    callback = "tray_manager_control.on_mask_group_message"
                },
                {
                    id = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_RECEIVE_GROUP_REPORT,
                    callback = "tray_manager_control.recv_group_report"
                },
                {
                    id = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_RECVIE_FRIEND_REPORT,
                    callback = "tray_manager_control.recv_friend_report"
                },
                {
                    id = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_DELETE_FRIEND,
                    callback = "tray_manager_control.on_delete_friend"
                },
            },
            lua_file = "tray_manager\\control.lua"
        },
    }
};

desc_mgr.add(tray_manager_desc);
ierd_tgp.tpf_ui.Require("tray_manager\\control.lua");